﻿
@{
    Layout = null;
}
<style>
    #dv_edit_pat input {
        border-top: none;
        border-left: none;
        border-right: none;
        text-wrap: normal;
        border-bottom-color: #74e8b5;
    }

    #dv_edit_pat p * {
        float: left;
        border: none;
        padding-left: 10px;
        padding-top: 5px;
    }

    .dv_tip {
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
        -webkit-box-shadow: #ccc 0px 0px 10px;
        -moz-box-shadow: #ccc 0px 0px 10px;
        box-shadow: #ccc 0px 0px 10px;
    }

    .select {
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #74e8b5;
        float: left;
    }
</style>
<script src="~/Content/js/jquery.citys.js"></script>
<div id="dv_edit_pat">
    <div class="panel_body" style="padding:0px 5px 0px 5px;height:100%;">
        <div id="dv_tip" class="dv_tip" style="height:70px;border:solid 2px #74e8b5;border-radius:5px;">
            <div style="height:100%;width:10%;float:left;">
                <div style="font-size:10px;font-weight:bold;color:#4bc9e5;width:80px; height:0px"><span class="required">*</span>姓名:</div>
                <p style="padding-top:10px;padding-left:20px;">
                    <input id="XM" name="XM" value="" style="font-size:18px;font-weight:bold;color:#4bc9e5;width:150px;" />
                </p>
            </div>
            <div style="height:100%;width:85%;float:left;padding-left:30px;">
                <table class="form">
					<tr>
						<th class="formTitle">住院号</th>
						<td class="formValue"><input id="BAH" name="BAH" class="form-control" readonly="readonly" style="border:none;" /></td>
						<th class="formTitle"><span class="required">*</span>医疗付款方式</th>
						<td class="formValue formDdlSelectorTd required" colspan="2">
							<select id="YLFKFS" name="YLFKFS" class="form-control" style="border:none;">
								<option value="1">自费</option>
								<option value="2">医保</option>
							</select>
						</td>
						<td><input id="ZYH" name="ZYH" type="hidden" /></td>
					</tr>
                    <tr>
                        <th class="formTitle">首页登记号</th>
                        <td class="formValue"><input id="PATID" name="PATID" class="form-control" style="border:none;" readonly="readonly" /></td>
                        <th class="formTitle"><span class="required">*</span>病案号</th>
                        <td class="formValue"><input id="JKKH" name="JKKH" class="form-control" style="border:none;" /></td>
                        <th class="formTitle"><span class="required">*</span> 住院次数</th>
                        <td class="formValue"><input id="ZYCS" name="ZYCS" class="form-control required" style="border:none;" readonly="readonly" /></td>
                        <th></th>
                        <td></td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="padding-bottom:30px;">
            <table class="form" style="height:100%;">
                <tr>
                    <th class="formTitle "><span class="required">*</span> 性别</th>
                    <td class="formValue" colspan="2">
                        <div style="float:left; width:70px" class="formValue">
                            <select id="XB" name="XB" class="form-control select required" data-enumtype="EnumMRSex">
                                <option>请选择</option>
                            </select>
                            <input style="height:0px;border-width:1px;" class="form-control" />
                        </div>
                        <span style="float:left; width:55px; height:100%; line-height:40px; margin-left:5px;">1.男 &nbsp;&nbsp;2.女</span>
                    </td>
                    <th class="formTitle"><span class="required">*</span>国籍</th>
                    <td class="formValue"><input id="GJ" name="GJ" class="form-control" /></td>
                    <th class="formTitle "><span class="required">*</span>民族</th>
                    <td class="formValue" colspan="2"><input id="MZ" name="MZ" class="form-control" /></td>
                    <th class="formTitle"><span class="required">*</span>籍贯</th>
                    <td class="formValue" colspan="2"><input id="GG" name="GG" class="form-control" /></td>
                </tr>
                <tr>
                    <th class="formTitle"><span class="required">*</span> 出生日期</th>
                    <td class="formValue" colspan="2">
                        <input id="CSRQ" type="text" class="form-control input-wdatepicker formClearIgnore required" disabled="disabled" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" />
                    </td>
                    <th class="formTitle"><span class="required">*</span> 年龄</th>
                    <td class="formValue"><input id="NL" name="NL" class="form-control required"  onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
                    <th class="formTitle " style="text-align:right;" colspan="2">(年龄不足1周岁的)年龄</th>
                    <td class="formValue"><input id="BZYZSNL" name="BZYZSNL" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')" /></td>
                    <th class="formTitle " style="text-align:right;" colspan="2">(年龄不足1月者)年龄</th>
                    <td class="formValue"><input id="BZYYSNL" name="BZYYSNL" class="form-control"  onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
                    <th class="formTitle "><span class="required">*</span>职业</th>
                    <td class="formValue" colspan="2"><input id="ZY" name="ZY" attr-code="" class="form-control required" /></td>
                </tr>
                <tr></tr>
                <tr>
                    <th class="formTitle "><span class="required">*</span> 身份证号</th>
                    <td class="formValue" colspan="2">
                        <input id="SFZH" name="SFZH" class="form-control required text-uppercase"  />
                    </td>
                    <td colspan="2"></td>
                    <th class="formTitle ">新生儿出生体重</th>
                    <td class="formValue">
                        <input id="XSECSTZ" name="XSECSTZ" class="form-control"  onkeyup="value=value.replace(/[^\d.]/g,'')"/>
                    </td>
                    <td>g</td>
                    <th class="formTitle ">新生儿入院体重</th>
                    <td class="formValue"><input id="XSERYTZ" name="XSERYTZ" class="form-control"  onkeyup="value=value.replace(/[^\d.]/g,'')"/></td>
                    <td>g</td>
                </tr>
                <tr>

                    <th class="formTitle "><span class="required">*</span>出生地</th>
                    <td class="formValue" colspan="6">
                        @*<input id="CSD" name="CSD" value="重庆市渝中区" class="form-control" />*@
                        <div id="citylist_CSD">
                            <select name="province" class="form-control select" style="width:22%;">
                                <option>请选择</option>
                            </select>
                            <select name="city" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <select name="area" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <input id="CSD" name="CSD" class="form-control" style="padding-bottom:0px;width:18%;float:left;" />
                        </div>
                    </td>
                    <th class="formTitle"><span class="required">*</span>婚姻状况</th>
                    <td class="formValue" colspan="5">
                        <div style="float:left; width:80px;">
                            <input id="HY" name="HY" class="form-control required"/>
                        </div>
                        <span style="float:left; width:200px; height:100%; line-height:20px; margin-left:20px;">1.未婚&nbsp;&nbsp;2.已婚&nbsp;&nbsp;3.丧偶&nbsp;&nbsp;4.离婚&nbsp;&nbsp;9.其他</span>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle "><span class="required">*</span>现住址</th>
                    <td class="formValue" colspan="6">
                        @*<input id="XZZ" name="XZZ" value="重庆市渝中区" class="form-control" />*@
                        <div id="citylist_XZZ">
                            <select name="province" class="form-control select" style="width:22%;">
                                <option>请选择</option>
                            </select>
                            <select name="city" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <select name="area" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <input id="XZZ" name="XZZ" class="form-control" style="padding-bottom:0px;width:18%;float:left;" />
                        </div>
                    </td>
                    <th class="formTitle "><span class="required">*</span>电话</th>
                    <td class="formValue" colspan="2"><input id="DH" name="DH" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
                    <th class="formTitle "><span class="required">*</span>邮编</th>
                    <td class="formValue">
                        <input id="XZZYB" name="XZZYB" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle "><span class="required">*</span>户口地址</th>
                    <td class="formValue" colspan="6">
                        @*<input id="HKDZ" name="HKDZ" style="float:left;width:80%;" value="重庆市渝中区" class="form-control" />*@
                        <div id="citylist_HKDZ" class="citys">
                            <select name="province" class="form-control select required" style="width:22%;">
                                <option>请选择</option>
                            </select>
                            <select name="city" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <select name="area" class="form-control select" style="width:28%;">
                                <option>请选择</option>
                            </select>
                            <input id="HKDZ" name="HKDZ" class="form-control required" style="padding-bottom:0px;width:18%;float:left;" />
                        </div>
                    </td>
                    <th class="formTitle ">邮编</th>
                    <td class="formValue">
                        <input id="HKDYB" name="HKDYB" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle"><span class="required">*</span>工作单位及地址</th>
                    <td class="formValue" colspan="4">
                        <input id="GZDWJDZ" name="GZDWJDZ" class="form-control" />
                    </td>
                    <th class="formTitle "><span class="required">*</span>单位电话</th>
                    <td class="formValue"><input id="DWDH" name="DWDH" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
                    <th class="formTitle "><span class="required">*</span>邮编</th>
                    <td class="formValue">
                        <input id="DWYB" name="DWYB" value="-" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle"><span class="required">*</span>联系人</th>
                    <td class="formValue"><input id="LXRXM" name="LXRXM" class="form-control" /></td>
                    <th class="formTitle "><span class="required">*</span>关系</th>
                    <td class="formValue "><input id="GX" name="GX" class="form-control" /></td>
                    <th class="formTitle "><span class="required">*</span>电话</th>
                    <td class="formValue"><input id="LXRDH" name="LXRDH" class="form-control"  onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
                    <th class="formTitle "><span class="required">*</span>地址</th>
                    <td class="formValue formDdlSelectorTd" colspan="5">
                        <div id="citylist_LXRDZ" class="citys">
                            <select name="province" class="form-control select" style="width:22%;">
                                <option> </option>

                            </select>
                            <select name="city" class="form-control select" style="width:28%;">
                                <option> </option>
                            </select>
                            <select name="area" class="form-control select" style="width:28%;">
                                <option> </option>
                            </select>
                            <input id="LXRDZ" name="LXRDZ" class="form-control" style="padding-bottom:0px;width:18%;float:left;" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle"><span class="required">*</span>入院途径</th>
                    <td class="formValue" colspan="1">
                        <div style="float:left; width:100px" class="formValue">
                            <select id="RYTJ" name="RYTJ" class="form-control select required" data-enumtype="EnumMrRYTJ">
                                <option>请选择</option>
                            </select>
                            <input style="height:0px;border-width:1px;" class="form-control" />
                        </div>

                    </td>
                    <th class="formTitle" colspan="2">其他医疗机构转入</th>
                    <td class="formValue"><input id="QTYLJGZR" name="QTYLJGZR" class="form-control" /></td>
                </tr>

                <tr>
                    <th class="formTitle "><span class="required">*</span>入院时间</th>
                    <td class="formValue" colspan="2">
                        <input id="RYSJ" type="text" class="form-control input-wdatepicker formClearIgnore required" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss' })" />
                    </td>
                    <th class="formTitle "><span class="required">*</span>入院科别</th>
                    <td class="formValue formDdlSelectorTd" colspan="2">
                        <input id="RYKB" name="RYKB" attr-ksdm="" class="form-control" data-code=""  type="hidden" />
                        <input id="RYBF" name="RYBF" attr-ksdm=""/>
                    </td>
                    <th class="formTitle ">床号</th>
                    <td class="formValue">
                        <input id="RYCH" name="RYCH" class="form-control" maxlength="10" size="5" />
                    </td>
                    <th class="formTitle ">转科科别</th>
                    <td class="formValue" colspan="2">
                        <input id="ZKKB" name="ZKKB" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle ">出院时间</th>
                    <td class="formValue" colspan="2">
                        <input id="CYSJ" name="CYSJ" type="text" class="form-control input-wdatepicker formClearIgnore" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss' })" />
                    </td>
                    <th class="formTitle ">出院科别</th>
                    <td class="formValue" colspan="2">
                        <input id="CYKB" name="CYKB" class="form-control" type="hidden" />
                        <input id="CYBF" name="CYBF" attr-ksdm=""/>
                    </td>
                    <th class="formTitle ">床号</th>
                    <td class="formValue">
                        <input id="CYCH" name="CYCH" class="form-control" maxlength="10" />
                    </td>
                    <th class="formTitle ">实际住院</th>
                    <td class="formValue">
                        <input id="SJZYTS" name="SJZYTS" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')"/>
                    </td>
                    <td>天</td>
                </tr>
                <tr>
                    <th class="formTitle "><span class="required">*</span> 门（急）诊诊断</th>
                    <td class="formValue" colspan="4">
                        <input id="MZZD" name="MZZD" value="" attr-zddm="" attr-ICD10="" class="form-control required" />
                    </td>
                    <th class="formTitle "><span class="required">*</span> 疾病编码</th>
                    <td class="formValue" colspan="4">
                        <input id="MZZDDM" name="MZZDDM" class="form-control required" attr-zddm="" attr-ICD10="" autocomplete="off" />
                        @*<input id="JBBM" name="JBBM" class="form-control" />*@
                    </td>
                </tr>
                <tr>
                    <th class="formTitle "><span class="required">*</span> 入院诊断</th>
                    <td class="formValue" colspan="4">
                        <input id="RYZD" name="RYZD" value="" attr-zddm="" attr-ICD10="" class="form-control required" />
                    </td>
                    <th class="formTitle "><span class="required">*</span> 疾病编码</th>
                    <td class="formValue" colspan="4">
                        <input id="RYZDDM" name="RYZDDM" class="form-control required" attr-zddm="" attr-ICD10="" autocomplete="off" />
                        @*<input id="JBBM" name="JBBM" class="form-control" />*@
                    </td>
                </tr>
                <tr>
                    <td colspan="9">
                        <div style="width:265px; float:left;" class="formValue">
                            <span style="float:left;padding-right:15px;padding-top: 5px; width:120px" class="formTitle">住院期间是否病危或病重</span>
                            <div style="width:65px; float:left; padding:0px;">
                                <select id="BWHBZ" name="BWHBZ" data-enumtype="EnumYorN" class="form-control">
                                    <option style="display :none"></option>
                                </select>
                                <input style="height:0px;border-width:1px;" class="form-control" />
                            </div>
                            <span style="float:left;padding-top: 5px;margin-left:14px;">1.是&nbsp;&nbsp;2.否</span>
                        </div>
                        <div style="width:125px; float:left;" class="formValue">
                            <span style="float:left;padding-right:10px;padding-top: 5px;" >抢救次数</span>
                            <input id="QJCS" name="QJCS" style="height:25px;border-width:1px; width:60px;float:left;" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')" />
                        </div>
                        <div style="width:125px; float:left;" class="formValue">
                            <span style="float:left;padding-right:10px;padding-top: 5px;" >成功次数</span>
                            <input id="QJCGCS" name="QJCGCS" style="height:25px;border-width:1px; width:60px;float:left;" class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>

    </div>

</div>
@*<div style="border-bottom:2px solid #cca5a5;border-radius:10px;">
        <span style="padding-left:10px;font-size:15px;font-weight:bold;">住院信息</span>
    </div>
    @Html.Partial("MainZyInfo")*@
<script>
	$(function () {
        $("#YLFKFS").bindSelect({
            url: "/SystemManage/Common/GetCommonList?type=YLFKFS",
            id: "Code",
            text: "Name"
        });
        
    });

    /************************数据绑定*******************************************/
    //门诊诊断
    $("#MZZD").zdFloatingSelector({
        zdlx: "WM",
        //ybnhlx: ybnhlx,
        width: 600,
        itemdbclickhandler: function ($this) {
            $("#MZZD").val($this.attr('data-zdmc')).attr("attr-zddm", $this.attr('data-code')).attr("attr-ICD10", $this.attr('data-icd10'));
            $("#MZZDDM").val($this.attr('data-icd10'));
        }
    });
    $("#MZZDDM").zdFloatingSelector({
        zdlx: "WM",
        //ybnhlx: ybnhlx,
        width: 600,
        itemdbclickhandler: function ($this) {
            $("#MZZD").val($this.attr('data-zdmc')).attr("attr-zddm", $this.attr('data-code')).attr("attr-ICD10", $this.attr('data-icd10'));
            $("#MZZDDM").val($this.attr('data-icd10'));
        }
    });
    /*入院诊断*/
    $("#RYZD").zdFloatingSelector({
        zdlx: "WM",
        //ybnhlx: ybnhlx,
        width: 600,
        itemdbclickhandler: function ($this) {
            $("#RYZD").val($this.attr('data-zdmc')).attr("attr-zddm", $this.attr('data-code')).attr("attr-ICD10", $this.attr('data-icd10'));
            $("#RYZDDM").val($this.attr('data-icd10'));
        }
    });
    $("#RYZDDM").zdFloatingSelector({
        zdlx: "WM",
        //ybnhlx: ybnhlx,
        width: 600,
        itemdbclickhandler: function ($this) {
            $("#RYZD").val($this.attr('data-zdmc')).attr("attr-zddm", $this.attr('data-code')).attr("attr-ICD10", $this.attr('data-icd10'));
            $("#RYZDDM").val($this.attr('data-icd10'));
        }
    });

    $("#RYBF").departmentFloatingSelector({
        width: 300,
        itemdbclickhandler: function ($this) {
            $("#RYBF").val($this.attr('data-name'));
        }
    });
    $("#CYBF").departmentFloatingSelector({
        width: 300,
        itemdbclickhandler: function ($this) {
            $("#CYBF").val($this.attr('data-name'));
        }
    });
    $("#ZKKB").departmentFloatingSelector({
        width: 300,
        itemdbclickhandler: function ($this) {
            $("#ZKKB").val($this.attr('data-name'));
        }
    });
    $("#ZY").dicCommonFloatingSelector({
        rule: "ZY",
        width: 150,
        itemdbclickhandler: function ($this) {
            $("#ZY").val($this.attr('data-name'));
        }
    });
    $("#GX").dicCommonFloatingSelector({
        rule: "GX",
        width: 150,
        itemdbclickhandler: function ($this) {
            $("#GX").val($this.attr('data-name'));
        }
    });
    $("#GJ").NationalityFloatingSelector({
        itemdbclickhandler: function ($this) {
            $("#GJ").val($this.attr('data-name'));
        }
    });
    $("#MZ").NationsFloatingSelector({
        itemdbclickhandler: function ($this) {
            $("#MZ").val($this.attr('data-name'));
        }
    });
    $("#HY").dicCommonFloatingSelector({
        rule: "HY",
        itemdbclickhandler: function ($this) {
            $("#HY").val($this.attr('data-name'));
        }
    });
    /************************地址联动*******************************************/
    $('#citylist_XZZ').citys({
        province: '',
        city: '',
        area: '',
        onChange: function (info) {
            //townFormat(info);
        }
    }, function (api) {
        var info = api.getInfo();
        //townFormat(info);
    });

    $('#citylist_LXRDZ').citys({
        province: '',
        city: '',
        area: '',
        onChange: function (info) {
            //townFormat(info);
        }
    }, function (api) {
        var info = api.getInfo();
        //townFormat(info);
    });

    $('#citylist_HKDZ').citys({
        province: '',
        city: '',
        area: '',
        onChange: function (info) {
            //townFormat(info);
        }
    }, function (api) {
        var info = api.getInfo();
        //townFormat(info);
    });
    $('#citylist_CSD').citys({
        province: '',
        city: '',
        area: '',
        onChange: function (info) {
            //townFormat(info);
        }
    }, function (api) {
        var info = api.getInfo();
        //townFormat(info);
    });

</script>